package cn.wolfcode.rbac.web.controller;

import cn.wolfcode.rbac.service.IVerifyCodeService;
import cn.wolfcode.rbac.util.R;
import cn.wolfcode.rbac.web.vo.VerifyCodeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/verifyCodes")
public class VerifyCodeController {
    @Autowired
    private IVerifyCodeService verifyCodeService;
    @GetMapping
    public R getVerifyCode(){
        VerifyCodeVo vo = verifyCodeService.getVerifyCodeVo();
        return R.ok(vo);
    }
}
